package net.kong.sns.rest.client.rest;

import net.kong.org.springframework.http.HttpHeaders;
import net.kong.org.springframework.http.HttpStatus;

/**
 * @author <a href="mailto:lanhuai@gmail.com">Ning Yubin</a>
 * @version $Id: HttpResponseContent.java,v 1.1 2009/07/28 02:30:29 ningyubin Exp $
 */
public class HttpResponseContent {
    private HttpHeaders httpHeaders;
    private String body;
    private HttpStatus httpStatus;

    public HttpResponseContent(HttpHeaders httpHeaders, String body) {
        this.httpHeaders = httpHeaders;
        this.body = body;
        this.httpStatus = HttpStatus.OK;
    }

    public HttpResponseContent(HttpHeaders httpHeaders, String body, HttpStatus httpStatus) {
        this.httpHeaders = httpHeaders;
        this.body = body;
        this.httpStatus = httpStatus;
    }

    public HttpHeaders getHttpHeaders() {
        return httpHeaders;
    }

    public void setHttpHeaders(HttpHeaders httpHeaders) {
        this.httpHeaders = httpHeaders;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public HttpStatus getHttpStatus() {
        return httpStatus;
    }

    public void setHttpStatus(HttpStatus httpStatus) {
        this.httpStatus = httpStatus;
    }
}
